//
//  XYSubObject.m
//  MyTest
//
//  Created by YaoZhaofeng on 16/6/28.
//  Copyright © 2016年 YaoZhaofeng. All rights reserved.
//

#import "XYSubObject.h"

@implementation XYSubObject

- (id)init {
    if (self = [super init]) {
    }
    return self;
}

- (void)setName:(NSString *)name {
    if (name.length <= 0) {
        [NSException raise:NSInvalidArgumentException format:@"name must be not null"];
    }
    [super setName:name];
}

+ (void)initialize {
    NSLog(@"我是子类initialize，如果不实现我，那么父类的initialize会执行多遍");
}


+ (void)load {
    NSLog(@"我是子类load");
}
@end
